package com.cmc.cloud.cmclink.doc.vo.specialcargoflexivo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 特种货审批flexi Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 *
 * @author codegen
 */
@Data
public class SpecialCargoFlexiBaseVO {

    private Long id;

    @Schema(description = "箱型ID")
    private Long cntrId;

    @Schema(description = "包装的最大容量（升 L）", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "{SpecialCargoFlexiBaseVO.capacityOfFlexitank.notNull}")
    private Integer capacityOfFlexitank;

    @Schema(description = "液袋货的体积（升 L）", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "{SpecialCargoFlexiBaseVO.volumeOfCargo.notNull}")
    private Integer volumeOfCargo;

    @Schema(description = "液体最多能装多少比例", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "{SpecialCargoFlexiBaseVO.loadingRatio.notNull}")
    private Integer loadingRatio;

    @Schema(description = "货物描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "你猜")
    @NotBlank(message = "{SpecialCargoBaseVO.cargoDescription.notBlank}")
    @Length(max = 500, message = "{SpecialCargoBaseVO.cargoDescription.length}")
    private String cargoDescription;

    @Schema(description = "生产厂家", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{SpecialCargoFlexiBaseVO.nameOfManufacturer.notBlank}")
    @Length(max = 50, message = "{SpecialCargoFlexiBaseVO.nameOfManufacturer.length}")
    private String nameOfManufacturer;

}
